package com.zzy.hero.service;

import com.zzy.hero.entity.Hero;

import java.util.List;

/**
 * @author 邹靓仔
 * @date 2020/6/10 -22:39 -hero-zzy
 **/
public interface HeroService {

    int add(Hero hero);

    /*根据Id删除*/
    int delete(int id);

    /*改*/
    int update(Hero hero);

    /*查询所有*/
    List<Hero> selectList();

    /*根据ID查询*/
    Hero findHeroById(int id);
}
